// 二级分类数据类型

export interface CategoryDataType {

    code: string,
    msg: string,
    result: {
        id: string,
        name: string,
        picture: string,
        children: CategoryChild[]
    }
}
export type child = {
    id: string,
    name: string,
    picture: string,
    children: child[],
    goods: good[]
}
export type good = {
    id: string,
    name: string,
    desc: string,
    price: string,
    picture: string,
    discount: any,
    orderNum: any
}
export interface CategoryChild extends child {
    parentId: string,
    parentName: string,
}

export interface CategoryData {
    id: string,
    name: string,
    picture: string,
    children: CategoryChild[]
}